// 开发配置
const merge = require('webpack-merge')
const baseConfig = require('./webpack.config.js')

// 压缩css
const OptimizeCSSAssertsPlugin = require('optimize-css-assets-webpack-plugin');


module.exports = merge(baseConfig, {
    output: {
        // 如果这个不替换的话打包出来可能本地无法直接访问
        publicPath: './'
    },
    mode: "production",
    optimization: {
        minimizer: [
            // 压缩CSS
            new OptimizeCSSAssertsPlugin({})
        ]
    },
})